class_name Damage
extends Effect

func execute(targets: Array[Node]) -> void:
    for target in targets:
        if !target: continue
        if target is Enemy or target is Player:
            target.getHurt(amount)
            SoundsPlayer.play(sound)